<?php
include(TPL.'head.html');
?>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">删帖贴吧（仅Cron有效）</h3>
	</div>
	<div class="panel-body">
		<form action="?m=del&a=tieba" method="post">
			<div id="tiebas">
			<?php
			$i=0;
			foreach ($tieba as $k) {
				echo '<p><input type="text" class="form-control" name="tieba[',$i,']" value="',$k,'"></p>';
				$i++;
			}
			?>
			</div>
			<input type="button" id="add" value="添加更多" class="btn btn-primary">
			<input type="submit" name="submit" value="保存" class="btn btn-primary">
		</form>
	</div>
</div>
<?php
echo '<script>var meid=',$i,';</script>';
$footerjs='$(\'#add\').click(function(){for (var i=1;i<=2;i++){$(\'#tiebas\').append(\'<p><input type="text" class="form-control" name="tieba[\'+meid+\']"></p>\');meid++;}});';
include(TPL.'footer.html');
?>